package com.dsh.storeManagement.service.Impl;

import com.dsh.storeManagement.dao.AdminFranchiseLevelDao;
import com.dsh.storeManagement.entity.vo.*;
import com.dsh.storeManagement.service.AdminFranchiseLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdminFranchiseLevelImpl implements AdminFranchiseLevelService {
    @Autowired
    AdminFranchiseLevelDao adminFranchiseLevelDao;

    @Override
    public List<AdminFranchiseLevelVo> selectDiscount() {
        List<AdminFranchiseLevelVo> adminFranchiseLevelVos = adminFranchiseLevelDao.selectDiscount();
        return adminFranchiseLevelVos;
    }

    @Override
    public int updateDiscount(UpdateDiscountVo updateDiscountVo) {
        int i = adminFranchiseLevelDao.updateDiscount(updateDiscountVo);
        return i;
    }

    @Override
    public boolean deleteById(Integer id) {
        return false;
    }

//    @Override
//    public AreaAndStoreVo selectAreaAllById(int sId) {
//
//    }

    @Override
    public int insertFranchise(FranchiseLevelVo franchiseLevelVo) {
        int i = adminFranchiseLevelDao.insertFranchise(franchiseLevelVo);
        return i;
    }
}
